<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		<title th:fragment="title">Page Subscription List</title>
		<th:block th:fragment="header">
			<meta name="_csrf" th:content="${_csrf.token}"/>
		</th:block>
    </head>
    <body>
        <div th:fragment="content">
			<div class="panel panel-info" th:each="subscription : ${subscriptions}">
				<div class="panel-heading">
					<h4 th:text="${subscription.name}">Subscription Name</h4>
				</div>
				<div class="panel-body">
					<h4>Description</h4>
					<p th:text="${subscription.description}">Subscription description</p>
					<h4>Last Message</h4>
					<p th:text="${subscription.lastMsg}">Last Message</p>
				</div>
				<div class="panel-footer">
					<a href="#" class="btn btn-primary btn-md" role="button" target="_blank"
					   th:href="@{/subscription/edit/{id}(id=${subscription.id})}">Edit</a>
				</div>
			</div>
        </div>
		<th:block th:fragment="script">
		</th:block>
    </body>
</html>